package com.csx.springcloud.registry.nacos.controller;

import com.csx.springcloud.registry.nacos.service.NacosRegistrySampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author cuisongxu
 * @date 2024/12/23 周一 20:56
 */
@RestController
@RequestMapping("/registry/nacos")
public class NacosRegistrySampleController {

    @Autowired
    private NacosRegistrySampleService nacosSampleService;

    @GetMapping("/helloNacos")
    public String helloNacos() {
        return nacosSampleService.helloNacos();
    }
}
